/************************************************
 * Author       :   XXY
 * Blog         :   https://www.cnblogs.com/jzyl
 * Gitee        :   https://gitee.com/xiaobaichong
 * Email        :   1047185209@QQ.com
 * FileName     :   LogUtillity.cs
 * CreateData   :   2023/5/8 17:40:17
 * UnityVersion :   2021.3.20f1c1
 * Description  :   日志打印
************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;

namespace Hotfix
{
    /// <summary>
    /// 日志打印
    /// </summary>
    internal class LogUtillity
    {
        public static void Log(object msg)
        {
            ConsoleFormat(msg, "white");
        }
        public static void Warning(object msg)
        {
            ConsoleFormat(msg, "yellow");
        }
        public static void Error(object msg)
        {
            ConsoleFormat(msg, "red");
        }

        private static void ConsoleFormat(object msg, string color)
        {
            Debug.Log($"<color={color}>{msg}</color>");
        }
    }
}